package com.yyt.bean_copy_demo.model;

import java.math.BigDecimal;

/**
 * @author yeyangtao created at 2021/4/9 15:51
 */
public class UserSource {
    private Integer param1;

    private Integer param2;

    private Long param3;

    private String param4;

    private String param5;

    private Double param6;

    private Double param7;

    private BigDecimal param8;

    public UserSource() {
    }
    public UserTarget convert(){
        UserTarget ut = new UserTarget();
        ut.setParam1(this.param1);
        ut.setParam2(this.param2);
        ut.setParam3(this.param3);
        ut.setParam4(this.param4);
        ut.setParam5(this.param5);
        ut.setParam6(this.param6);
        ut.setParam7(this.param7);
        ut.setParam8(this.param8);
        return ut;
    }

    @Override
    public String toString() {
        return "UserSource{" +
                "param1=" + param1 +
                ", param2=" + param2 +
                ", param3=" + param3 +
                ", param4='" + param4 + '\'' +
                ", param5='" + param5 + '\'' +
                ", param6=" + param6 +
                ", param7=" + param7 +
                ", param8=" + param8 +
                '}';
    }

    public UserSource(Integer param1) {
        this.param1 = param1;
        this.param2 = param1 + 2;
        this.param3 = Long.valueOf(param1) + 3;
        this.param4 = String.valueOf(param1) + 4;
        this.param5 = String.valueOf(param1) + 5;
        this.param6 = Double.valueOf(param1) + 6;
        this.param7 = Double.valueOf(param1) + 7;
        this.param8 = new BigDecimal(param1);
    }

    public Integer getParam1() {
        return param1;
    }

    public void setParam1(Integer param1) {
        this.param1 = param1;
    }

    public Integer getParam2() {
        return param2;
    }

    public void setParam2(Integer param2) {
        this.param2 = param2;
    }

    public Long getParam3() {
        return param3;
    }

    public void setParam3(Long param3) {
        this.param3 = param3;
    }

    public String getParam4() {
        return param4;
    }

    public void setParam4(String param4) {
        this.param4 = param4;
    }

    public String getParam5() {
        return param5;
    }

    public void setParam5(String param5) {
        this.param5 = param5;
    }

    public Double getParam6() {
        return param6;
    }

    public void setParam6(Double param6) {
        this.param6 = param6;
    }

    public Double getParam7() {
        return param7;
    }

    public void setParam7(Double param7) {
        this.param7 = param7;
    }

    public BigDecimal getParam8() {
        return param8;
    }

    public void setParam8(BigDecimal param8) {
        this.param8 = param8;
    }
}
